const express = require('express')
const { indexRouter } = require('./router/index.js')
const { userRouter } = require('./router/user.js')
const { goodRouter } = require('./router/good.js')
const app = express()

//集成路由对明到express
app.use(indexRouter)
app.use('/user',userRouter)
app.use('/goods',goodRouter)

app.listen(3000, () => console.log('监听3000端口，启动服务...'))
